<?php
/**
 * Retrieve the site's name from the configuration. Eventually I may implement
 * a settings model, which will basically extend the application.ini file with
 * database-customizable values. When I do, this may need to come from there
 * instead.
 *
 * @package 	Clients
 * @subpackage 	View Helpers
 * @author 		Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright 	(c) 2011 Coalition Technologies <joel@coalitiontechnologies.com>
 * @version 	$Id$
 */
class Visi_View_Helper_GetSiteName extends Zend_View_Helper_Abstract {

    protected $_site_name = false;
    
    public function getSiteName() {
    
        if (!$this->_site_name) {
            if (isset($this->view->config)) {
                $options = $this->view->config;
                $this->_site_name = $options->sitename;
            }
        }
        return $this->_site_name;
    
    }

}